<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 10.算法题：给下面数组中每一个对象添加一个age属性，值为年龄（当前年份减去birthYear。例如张三的年龄应该是2024-2000=24）
    var arr = [
        { name: '张三', birthYear: '2000' },
        { name: '李四', birthYear: '2011' },
        { name: '王五', birthYear: '2006' }
    ];
</script>

</html>